package self;

public class TestAnonymousInnerClass {
    int a = 1;
    void test01(A3 a){
        System.out.println("test01");
    }

    public static void main(String[] args) {
        TestAnonymousInnerClass tes01 = new TestAnonymousInnerClass();
        tes01.test01(new A3(){

            @Override
            public void sleep() {
                System.out.println("sleep");
            }
        });
    }               

}

interface A3{
    void sleep();
}
